package com.qian.dao;

import com.qian.pojo.Employees;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface EmployeeMapper {

    List<Employees> queryAll();

    void addEmployee(Employees employees);

    void deleteEmployee(@Param("employee_id") Long employeeId);

    void updateEmployee(Employees employees);

    Employees selectEmployeeById(@Param("employee_id") Long employeeId);

    List<Employees> queryEmployeeByName(@Param("employee_name") String employeeName);

    List<Employees> queryEmployeeByAccount(@Param("employee_account") String employeeAccount);

    List<Integer> allTenants();
}
